/**
Copyright (c) 2008 Arnaud Fabre <arnaud333@gmail.com>

This file is part of Vos Tutos Offline.

Vos Tutos Offline is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Vos Tutos Offline is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Vos Tutos Offline.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _VTO_ALERT_H
#define _VTO_ALERT_H

#include <QString>
#include <QWidget>
#include <QFlags>
#include <QMessageBox>

class VTOAlert{

public:
        static int alert(QString message, QWidget* parent = NULL);
	static int alert(int errno, QWidget* parent = NULL);

private:
	static int getErrLvl(int errno);
	static QFlags<QMessageBox::StandardButton> getErrButtons(int errno);
	static QString getErrText(int errno);
	
};

#endif


